package com.tencreat.domain.mall.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@ApiModel("app端拼团商品列表")
public class ResGoodsCollageListAppVO {
    @ApiModelProperty("拼团商品id")
    private Long collageGoodsId;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("商品id")
    private Long goodsId;

    @ApiModelProperty("商品图片")
    private String picUrl;

    @ApiModelProperty("拼团结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date collageEnd;

    @ApiModelProperty("拼团价")
    private BigDecimal collagePrice;

    @ApiModelProperty("原价")
    private BigDecimal originPrice;

    @ApiModelProperty(value = "已抢数量")
    private Integer numberGet;

    @ApiModelProperty(value = "剩余数量")
    private Integer numberRemaining;

    @ApiModelProperty("物流类型")
    private BigDecimal logisticsId;

    @ApiModelProperty("拼团时长")
    private BigDecimal collageTime;
    @ApiModelProperty("拼团时长")
    private Long collageStatus;

    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

}
